<!--分页部分-->
<template>
  <div class="paginationOne" v-show="!(arr==[]||arr==''||arr==undefined||arr==null)">
      <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="currentPage"
          :page-sizes="[10, 20, 50, 100]"
          :page-size="eachNum"
          layout="total, sizes, prev, pager, next, jumper"
          :total="total">
      </el-pagination>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        eachNum: localStorage.getItem('eachNum')?parseInt(localStorage.getItem('eachNum')):10,
      };
    },
    props:["arr","total","currentPage","handleSizeChange","handleCurrentChange"]
  };
</script>